<div class="homepage_right_column">
<!--<div class="pick_song"><img alt="" src="<?=base_url()?>/css/escala_promo.jpg"></div>-->
<div class="chart_listing_dir" style="width:250px;*width:240px">
<div class="box_top"><span class="box_title" >最热二手书:</span></div>
<div class="chart_listing_content_homepage">
<table>
<!--freebook_song_result_s9f0d0628cbeeb14f-->
<tbody>
    <?php
    $rank=1;
     if($hottest_book!=null)
    foreach($hottest_book as $book){
    ?>
    <tr onmouseover="this.style.background = &quot;#f2f3f4&quot;;" onmouseout="this.style.background = &quot;#ffffff&quot;;" >
    <td class="ranking"><?=$rank++;?></td>
    <td class="item_title"><a href="<?=site_url()?>/post/getpost_ofbook?go=yes&bookid=<?=$book->id?>">
    <?
       $title=$book->title;
        if(mb_strlen($title,"UTF-8")>14)
          echo mb_substr($title,0,14,"UTF-8")."...";
        else
          echo $title;
    ?>
    </a></td>
     <td class="item_artist"><div class="sub_link">
     <a href="" style="white-space:nowrap;"><?=$book->numdeals?></a>
    </div></td>
    </tr>
    <?php
     }?>
</tbody>
</table>
<a href="<?=site_url()?>/rank/hotbook">更多热门旧书</a>
</div>


</div>

<div class="chart_listing_dir" style="width:250px;*width:240px;margin-top:10px"><div class="box_top"><span class="box_title">最热二手书店:</span></div>
<div class="chart_listing_content_homepage" >
<table >
<tbody>
    <?php
    $rank=1;
    if($hottest_shop!=null)
    foreach($hottest_shop as $shop){
    ?>
    <tr onmouseover="this.style.background = &quot;#f2f3f4&quot;;" onmouseout="this.style.background = &quot;#ffffff&quot;;" >
    <td class="ranking"><?=$rank++;?></td>
    <td class="item_title"><a href="<?=site_url()?>/bookiki/entershop?go=yes&id=<?=$shop->id?>">
    <?
        if($shop->shopname!=null)
           $title=$shop->shopname;
        else
          $title=$shop->id;
        if(mb_strlen($title,"UTF-8")>14)
          echo mb_substr($title,0,14,"UTF-8")."...";
        else
          echo $title;
    ?>
    </a></td>
     <td class="item_artist"><div class="sub_link">
     <a href="" style="white-space:nowrap;"><?=$shop->numsales+$shop->numwanted+$shop->numsaledeals+$shop->numwanteddeals?></a>
    </div></td>
    </tr>
    <?php
    if ($rank>=5)
       break;
     }?>
</tbody>
</table>
</div>
</div>
</div> <!--homepage_right_column-->